package com.zkthink.ceres.applet.feedback.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**

@Author cmz
@Date 2024-05-07 10:25
*/
@Data
@TableName(value = "applet_feedback")
public class AppletFeedback {
    /**
     * 意见反馈表id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "mid")
    private Long mid;

    /**
     * 反馈标题
     */
    @TableField(value = "feedback_title")
    private String feedbackTitle;

    /**
     * 反馈内容
     */
    @TableField(value = "feedback_content")
    private String feedbackContent;

    /**
     * 反馈图片(多个地址之间用，拼接)
     */
    @TableField(value = "feedback_img")
    private String feedbackImg;

    /**
     * 联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 最后修改人
     */
    @TableField(value = "update_user")
    private String updateUser;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    public static final String COL_ID = "id";

    public static final String COL_MID = "mid";

    public static final String COL_FEEDBACK_TITLE = "feedback_title";

    public static final String COL_FEEDBACK_CONTENT = "feedback_content";

    public static final String COL_FEEDBACK_IMG = "feedback_img";

    public static final String COL_PHONE = "phone";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";
}